package com.wj.api;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @author jun.wang
 * @title: UserApi
 * @projectName ownerpro
 * @description: TODO
 * @date 2019/9/26 15:22
 */
@FeignClient(name = "oauth-manager")
public interface UserApi {

    @PostMapping("/api/roleMenu/addRoleMenu")
    JSONObject addRoleMenu(@RequestBody Map<String, Object> params);

    @GetMapping("/api/roleMenu/findMenuByRole")
    List<JSONObject> findMenuByRole(@RequestParam long roleId);
}
